<?php
set_time_limit(5);
$diff = Aero::load('libs/diff');

echo "<h2>Test 1</h2>";

$test_1_old = 'This is a simple string with one difference.
';
$test_1_new = 'This is a simple string with two differences.
';

$df = $diff->diff($test_1_old,$test_1_new);
echo $diff->display($df[0]);
echo $diff->display($df[1]);

echo "<h2>Test 2</h2>";

$test_2_old = 'Some string

Another line of text.

And 1 more line of text here
';
$test_2_new = 'This is a completely different...

...piece of text!

What are you staring at?';

$df = $diff->diff($test_2_old,$test_2_new);
echo $diff->display($df[0]);
echo $diff->display($df[1]);

echo "<h2>Test 3</h2>";

$test_2_old = 'Some string

Another line of text.

And 1 more line of text here
';
$test_2_new = 'Some string

Another line of text.

And 2 more lines of text here
As promised 1 more line.';

$df = $diff->diff($test_2_old,$test_2_new);
echo $diff->display($df[0]);
echo $diff->display($df[1]);


?>